<script type="text/javascript">
$(function() {
	$("#yearSemester").change(function(){
		$("#selForm").submit();
	});
});
</script>

<div class="ui-widget-content ui-corner-all" style="padding:15px; margin:5px">
<form action="" method="post" id="selForm">
<label for="yearSemester"><?php echo $this->translate('choose semester')?></label>
<select name="yearSemester" id="yearSemester">
<?php echo $this->YearSemesterOptions($this->yearSemester, array('order'=>'year DESC'))?>
</select>
<table>
<?php foreach($this->year_name as $id=>$val) :?>
<tr>
<td><?php echo $val?></td>
<td><input type="text" name="year[<?php echo $id?>]"  id="year-<?php echo $id?>"
 value="<?php if(isset($this->data[$id])) echo $this->data[$id]?>" size="6"/>
 <?php echo $this->translate('days')?></td>
</tr>
<?php endforeach?>
</table>
<input type="submit" name="act" id="actBtn"  value="<?php echo $this->translate('submit')?>" />
</form>
<table>

</table>

</div>